FROM openjdk:8u252-jre

MAINTAINER lijiajia3515

RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list; \
    sed -i 's/security.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list; \
    apt clean -y; \
    apt update -y; \
    apt upgrade -y

ENV LANG en_US.UTF-8

ADD ./target/yirui_sc.jar /hfhk/check/server/app.jar

ENV SPRING_PROFILES_ACTIVE prod

WORKDIR /hfhk/check/server

EXPOSE 80

ENTRYPOINT java -jar app.jar
